<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends Controller {

    public function index(){

        if(isset($_SESSION['user_name'])){
            $user_name = $_SESSION['user_name'];
            $this->assign('user_name',$user_name);
            $this->display();

        }else{
            $this->error('未登录，请登录',U('Admin/Login/login'),2);

        }

    }

}
